package com.syh.jn.scm.infrastructure.repository.model.finance.archive;

import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * Created by soci.song on 2019/3/1.
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@EqualsAndHashCode(callSuper = true)
@Table(name = "T_FINANCE_ARCHIVE")
public class ArchiveModel extends SuperBusinessModel {
    /**
     * 结存开始日期
     */
    @Column(name = "ARCHIVE_FROM_TIME_STAMP", columnDefinition = "bigint COMMENT '结存开始日期'")
    private Long archiveFromTimeStamp;
    /**
     * 结存结束日期
     */
    @Column(name = "ARCHIVE_END_TIME_STAMP", columnDefinition = "bigint COMMENT '结存结束日期'")
    private Long archiveEndTimeStamp;
    /**
     * 应收汇总
     */
    @Column(name = "RECEIVABLES_SUMMARY", columnDefinition = "bigint COMMENT '应收汇总'")
    private BigDecimal receivablesSummary;
    /**
     * 应付汇总
     */
    @Column(name = "PAYABLES_SUMMARY", columnDefinition = "bigint COMMENT '应付汇总'")
    private BigDecimal payablesSummary;
    /**
     * 库存余额汇总
     */
    @Column(name = "STOCK_BALANCE_SUMMARY", columnDefinition = "bigint COMMENT '库存余额汇总'")
    private BigDecimal stockBalanceSummary;
    /**
     * 期初应收汇总
     */
    @Column(name = "BEGINNING_RECEIVABLES_SUMMARY", columnDefinition = "bigint COMMENT '期初应收汇总'")
    private BigDecimal beginningReceivablesSummary;
    /**
     * 期初应付汇总
     */
    @Column(name = "BEGINNING_PAYABLES_SUMMARY", columnDefinition = "bigint COMMENT '期初应付汇总'")
    private BigDecimal beginningPayablesSummary;
    /**
     * 期初库存余额汇总
     */
    @Column(name = "BEGINNING_STOCK_BALANCE_SUMMARY", columnDefinition = "bigint COMMENT '期初库存余额汇总'")
    private BigDecimal beginningStockBalanceSummary;
    /**
     * 结存标题
     */
    @Column(name = "TITLE", columnDefinition = "varchar(60) COMMENT '结存标题'")
    private String title;
    /**
     * 结存备注
     */
    @Column(name = "REMARK", columnDefinition = "varchar(200) COMMENT '结存备注'")
    private String remark;
    /**
     * 操作人员id
     */
    @Column(name = "OPERATOR_ID", columnDefinition = "bigint COMMENT '操作人员id'")
    private Long operatorId;
    /**
     * 创建日期
     */
    @Column(name = "CREATE_TIME_STAMP", columnDefinition = "bigint COMMENT '创建日期'")
    private Long createTimeStamp;
}
